Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-url

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-url

Check whether a string is a URL.

  • 1.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2M
decreased by-41.79%
Maintainers
2
Weekly downloads
 
Created

What is is-url?

The is-url npm package is a simple utility to check if a given string is a valid URL. It is lightweight and easy to use, making it a convenient choice for basic URL validation tasks.

What are is-url's main functionalities?

Basic URL Validation

This feature allows you to check if a given string is a valid URL. The function returns true if the string is a valid URL and false otherwise.

const isUrl = require('is-url');

console.log(isUrl('https://www.example.com')); // true
console.log(isUrl('not a url')); // false

Other packages similar to is-url

FAQs

Package last updated on 26 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc